package com.zhidisoft.crm.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;

public abstract class BaseController {

	@Autowired
	HttpServletRequest request;

	public String getCurUser() {
		// ServletActionContext.getRequest()
		Object userObj = request.getSession().getAttribute("userId");
		if (userObj == null)
			return "";
		return userObj.toString();
	}
}
